class ActivityStatusUtil {

  static final Map<String, String> statusSelectedMap = {
    // 签到
    '1': 'assets/icons/icon_activity_sign_selected.png',
    // 认证
    '2': 'assets/icons/icon_activity_authentication_selected.png',
    // 抢购
    '3': 'assets/icons/icon_activity_rush_pirchase_selected.png',
    // 领取
    '4': 'assets/icons/icon_activity_receive_selected.png'
  };

  static final Map<String, String> statusMap = {
    // 签到
    '1': 'assets/icons/icon_activity_sign.png',
    // 认证
    '2': 'assets/icons/icon_activity_authentication.png',
    // 抢购
    '3': 'assets/icons/icon_activity_rush_pirchase.png',
    // 领取
    '4': 'assets/icons/icon_activity_receive.png'
  };

  static final Map<String, String> statusStepMap = {
    // 签到
    '1': 'assets/icons/icon_activity_step.png',
    // 认证
    '2': 'assets/icons/icon_activity_step_selected.png'
  };

  /// 获取用户活动状态icon status => icon， thisStatus => 用户当前的状态
  static String getActivityStatusIcon(int status, int thisStatus) {
    if (thisStatus >= status) {
      return statusSelectedMap['$status']!;
    }
    return statusMap['$status']!;
  }
  
  /// 获取步骤条
  static String getActivityStatusStepIcon(int status, int thisStatus) {
    if (thisStatus > status) {
      return statusStepMap['2']!;
    }
    return statusStepMap['1']!;
  }

}